package com.qianli.cashmama.trade.client.bill.request;

import com.fqgj.common.api.ParamsObject;
import com.fqgj.exception.common.ApplicationException;
import org.apache.commons.lang.StringUtils;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2017/7/24
 * Time: 下午10:15
 * 账单查询参数
 */
public class BillListRequest extends ParamsObject {
    /**
     *
     */
    private String tradeNo;

    @Override
    public void validate() {
        if (StringUtils.isEmpty(tradeNo)) {
            throw new ApplicationException("Parameter error");
        }
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public BillListRequest setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
        return this;
    }
}
